Optimal. Leaf size=127 \[ -\frac {\left (4 a b c d-3 (a d+b c)^2\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{4 b^{5/2} d^{5/2}}-\frac {3 \sqrt {a+b x} \sqrt {c+d x} (a d+b c)}{4 b^2 d^2}+\frac {x \sqrt {a+b x} \sqrt {c+d x}}{2 b d} \]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 127, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {90, 80, 63, 217, 206} \begin {gather*} -\frac {3 \sqrt {a+b x} \sqrt {c+d x} (a d+b c)}{4 b^2 d^2}-\frac {\left (4 a b c d-3 (a d+b c)^2\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{4 b^{5/2} d^{5/2}}+\frac {x \sqrt {a+b x} \sqrt {c+d x}}{2 b d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 80
Rule 90
Rule 206
Rule 217
Rubi steps
\begin {align*} \int \frac {x^2}{\sqrt {a+b x} \sqrt {c+d x}} \, dx &=\frac {x \sqrt {a+b x} \sqrt {c+d x}}{2 b d}+\frac {\int \frac {-a c-\frac {3}{2} (b c+a d) x}{\sqrt {a+b x} \sqrt {c+d x}} \, dx}{2 b d}\\ &=-\frac {3 (b c+a d) \sqrt {a+b x} \sqrt {c+d x}}{4 b^2 d^2}+\frac {x \sqrt {a+b x} \sqrt {c+d x}}{2 b d}-\frac {\left (4 a b c d-3 (b c+a d)^2\right ) \int \frac {1}{\sqrt {a+b x} \sqrt {c+d x}} \, dx}{8 b^2 d^2}\\ &=-\frac {3 (b c+a d) \sqrt {a+b x} \sqrt {c+d x}}{4 b^2 d^2}+\frac {x \sqrt {a+b x} \sqrt {c+d x}}{2 b d}-\frac {\left (4 a b c d-3 (b c+a d)^2\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {c-\frac {a d}{b}+\frac {d x^2}{b}}} \, dx,x,\sqrt {a+b x}\right )}{4 b^3 d^2}\\ &=-\frac {3 (b c+a d) \sqrt {a+b x} \sqrt {c+d x}}{4 b^2 d^2}+\frac {x \sqrt {a+b x} \sqrt {c+d x}}{2 b d}-\frac {\left (4 a b c d-3 (b c+a d)^2\right ) \operatorname {Subst}\left (\int \frac {1}{1-\frac {d x^2}{b}} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c+d x}}\right )}{4 b^3 d^2}\\ &=-\frac {3 (b c+a d) \sqrt {a+b x} \sqrt {c+d x}}{4 b^2 d^2}+\frac {x \sqrt {a+b x} \sqrt {c+d x}}{2 b d}-\frac {\left (4 a b c d-3 (b c+a d)^2\right ) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{4 b^{5/2} d^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.25, size = 142, normalized size = 1.12 \begin {gather*} \frac {\sqrt {b c-a d} \left (3 a^2 d^2+2 a b c d+3 b^2 c^2\right ) \sqrt {\frac {b (c+d x)}{b c-a d}} \sinh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b c-a d}}\right )+b \sqrt {d} \sqrt {a+b x} (c+d x) (-3 a d-3 b c+2 b d x)}{4 b^3 d^{5/2} \sqrt {c+d x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.26, size = 203, normalized size = 1.60 \begin {gather*} \frac {\left (3 a^2 d^2+2 a b c d+3 b^2 c^2\right ) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {a+b x}}\right )}{4 b^{5/2} d^{5/2}}-\frac {\sqrt {c+d x} \left (-\frac {5 a^2 b d^2 (c+d x)}{a+b x}+3 a^2 d^3+\frac {3 b^3 c^2 (c+d x)}{a+b x}+\frac {2 a b^2 c d (c+d x)}{a+b x}+2 a b c d^2-5 b^2 c^2 d\right )}{4 b^2 d^2 \sqrt {a+b x} \left (\frac {b (c+d x)}{a+b x}-d\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.31, size = 308, normalized size = 2.43 \begin {gather*} \left [\frac {{\left (3 \, b^{2} c^{2} + 2 \, a b c d + 3 \, a^{2} d^{2}\right )} \sqrt {b d} \log \left (8 \, b^{2} d^{2} x^{2} + b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2} + 4 \, {\left (2 \, b d x + b c + a d\right )} \sqrt {b d} \sqrt {b x + a} \sqrt {d x + c} + 8 \, {\left (b^{2} c d + a b d^{2}\right )} x\right ) + 4 \, {\left (2 \, b^{2} d^{2} x - 3 \, b^{2} c d - 3 \, a b d^{2}\right )} \sqrt {b x + a} \sqrt {d x + c}}{16 \, b^{3} d^{3}}, -\frac {{\left (3 \, b^{2} c^{2} + 2 \, a b c d + 3 \, a^{2} d^{2}\right )} \sqrt {-b d} \arctan \left (\frac {{\left (2 \, b d x + b c + a d\right )} \sqrt {-b d} \sqrt {b x + a} \sqrt {d x + c}}{2 \, {\left (b^{2} d^{2} x^{2} + a b c d + {\left (b^{2} c d + a b d^{2}\right )} x\right )}}\right ) - 2 \, {\left (2 \, b^{2} d^{2} x - 3 \, b^{2} c d - 3 \, a b d^{2}\right )} \sqrt {b x + a} \sqrt {d x + c}}{8 \, b^{3} d^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.13, size = 150, normalized size = 1.18 \begin {gather*} \frac {{\left (\sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d} \sqrt {b x + a} {\left (\frac {2 \, {\left (b x + a\right )}}{b^{3} d} - \frac {3 \, b^{6} c d + 5 \, a b^{5} d^{2}}{b^{8} d^{3}}\right )} - \frac {{\left (3 \, b^{2} c^{2} + 2 \, a b c d + 3 \, a^{2} d^{2}\right )} \log \left ({\left | -\sqrt {b d} \sqrt {b x + a} + \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d} \right |}\right )}{\sqrt {b d} b^{2} d^{2}}\right )} b}{4 \, {\left | b \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 251, normalized size = 1.98 \begin {gather*} \frac {\left (3 a^{2} d^{2} \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )+2 a b c d \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )+3 b^{2} c^{2} \ln \left (\frac {2 b d x +a d +b c +2 \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, \sqrt {b d}}{2 \sqrt {b d}}\right )+4 \sqrt {b d}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, b d x -6 \sqrt {b d}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, a d -6 \sqrt {b d}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, b c \right ) \sqrt {b x +a}\, \sqrt {d x +c}}{8 \sqrt {b d}\, \sqrt {\left (b x +a \right ) \left (d x +c \right )}\, b^{2} d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 16.38, size = 508, normalized size = 4.00 \begin {gather*} \frac {\mathrm {atanh}\left (\frac {\sqrt {d}\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}{\sqrt {b}\,\left (\sqrt {c+d\,x}-\sqrt {c}\right )}\right )\,\left (3\,a^2\,d^2+2\,a\,b\,c\,d+3\,b^2\,c^2\right )}{2\,b^{5/2}\,d^{5/2}}-\frac {\frac {\left (\sqrt {a+b\,x}-\sqrt {a}\right )\,\left (\frac {3\,a^2\,b\,d^2}{2}+a\,b^2\,c\,d+\frac {3\,b^3\,c^2}{2}\right )}{d^6\,\left (\sqrt {c+d\,x}-\sqrt {c}\right )}-\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^3\,\left (\frac {11\,a^2\,d^2}{2}+25\,a\,b\,c\,d+\frac {11\,b^2\,c^2}{2}\right )}{d^5\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^3}+\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^7\,\left (\frac {3\,a^2\,d^2}{2}+a\,b\,c\,d+\frac {3\,b^2\,c^2}{2}\right )}{b^2\,d^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^7}-\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^5\,\left (\frac {11\,a^2\,d^2}{2}+25\,a\,b\,c\,d+\frac {11\,b^2\,c^2}{2}\right )}{b\,d^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^5}+\frac {\sqrt {a}\,\sqrt {c}\,\left (32\,a\,d+32\,b\,c\right )\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^4}{d^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}}{\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^8}{{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^8}+\frac {b^4}{d^4}-\frac {4\,b^3\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2}{d^3\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}+\frac {6\,b^2\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^4}{d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}-\frac {4\,b\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^6}{d\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2}}{\sqrt {a + b x} \sqrt {c + d x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________